package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread thread = new MyThread1();
        Thread thread1 = new MyThread2();
        thread.start();
        thread1.start();
    }
}


class MyThread1 extends Thread{
    public void run(){
        for (int i=1;i<=1000;i++){
            System.out.println("你是谁?");
        }
    }
}

class MyThread2 extends Thread{
    public void run(){
        for (int i=1;i<=1000;i++){
            System.out.println("我是java学习者");
        }
    }
}
